import matplotlib.pyplot as plt
import random
plt.rcParams['font.sans-serif']=['SimHei']  #设置绘图支持中文显示
x=[]
y=[]
for a in range(50):
    a = random.randint(1,30)
    b = random.randint(10,50)
    x.append(a)
    y.append(b)
print(x)
print(y)
plt.scatter(x,y)
plt.xlabel('随机')
plt.ylabel('随机')
plt.show()
